package dem2;

import java.util.*;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: 33013
 * Date: 2023-04-21
 * Time: 22:13
 */
public class Test {

    public static void main(String[] args) {
        List<List<Integer>> list = new ArrayList<>();
        Stack<List<Integer>> stack = new Stack<>();
        List<Integer> list1 = null;
        while(!list.isEmpty()){
            stack.push(list.remove(0));
        }
        while(!stack.isEmpty()){
            list.add(stack.pop());
        }
    }

    public static void main1(String[] args) {
        List<List<Integer>> list = new ArrayList<>();
        Queue<Integer> queue = new LinkedList<>();
        Stack<Integer> stack = new Stack<>();
        stack.peek();
    }
}
